<?php

    require_once '../../../Class/config.php';
	$objcfg = new config();
	require_once ($_SERVER["DOCUMENT_ROOT"]."/".$objcfg->objEnd."/Class/geral.php");

    $geral = new Geral();
    require_once ($geral->conexao());
    require_once ($geral->modelo());

    $objMode = new Modelo();

    $objMode->setId($_POST["id"]);
    $objMode->setDescModelo($_POST["desc"]);
    $objMode->setQuantFaces($_POST["qtdface"]);

    $objMode->alterar();

?>
